<?php
function connect_db ()
{
    // Returns the database connection pointer or false  
    $db_con = mysql_pconnect (DB_SERVER,DB_USER,DB_PASS);
	
    if (!$db_con) return false;
	
    if (!mysql_select_db (DB_NAME, $db_con)) return false;
	
    return $db_con;
}
?>